import request from '@/utils/request';
import { stringify } from 'qs';
/**
 * 库存报表
 * @param {*} params 
 */
export async function getGoodsStockReportList(params) {
  return request(`/merchandise/list?${stringify(params)}`);
}

/**
 * 根据用户信息查询场馆List
 * @param {*} params 
 */
export async function fetchShopList(params) {
  return request('/venueInfo/queryVenueInfoListByUserId', {
    method: 'POST',
    requestType:'form',
    data: { ...params },
  });
}

/**
 * 新增赠品
 * @param {*} params 
 * @returns 
 */
export async function addGift(params) {
  return request('/merchandise/add', {
    method: 'POST',
    data: { ...params },
  });
}

/**
 * 编辑赠品
 * @param {*} params 
 * @returns 
 */
export async function editGift(params) {
  return request('/merchandise/update', {
    method: 'POST',
    data: { ...params },
  });
}

/**
 * 删除赠品
 * @param {*} params 
 * @returns 
 */
export async function delGift(params) {
  return request('/merchandise/delete', {
    method: 'POST',
    data: { ...params },
  });
}
/**
 * 出入库
 * @param {*} params 
 * @returns 
 */
export async function stockInOrOut(params) {
  return request('/merchandise/stock/records', {
    method: 'POST',
    data: { ...params },
  });
}